package top.bulgat.test.application.idl;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.bulgat.apidocs.annotation.RestApi;
import top.bulgat.commons.model.BaseResp;
import top.bulgat.test.application.idl.model.book.Book;
import top.bulgat.test.application.idl.model.book.ListReq;

import java.util.List;

@RestApi
@RequestMapping("/api/book")
public interface BookApi {

    @PostMapping("/list")
    BaseResp<List<Book>> list(ListReq req);
}
